#ifndef  _WRITE_ERASE_SECURE_H
#define  _WRITE_ERASE_SECURE_H

typedef enum
{
   SUCCESS=300,
   INVALID_SECTOR=301,
   SECTOR_ALREADY_SECURED=302,
   NOT_EXECUTING_IN_RAM=303,
   WRONG_PART=304
}WES_Return_Code;

extern WES_Return_Code __attribute__((section("ramrun"),long_call)) write_erase_secure_user_sector(unsigned start, unsigned end, unsigned cclk);
extern WES_Return_Code __attribute__((section("ramrun"),long_call)) write_erase_secure_boot_sector(unsigned cclk);
extern unsigned __attribute__((section("ramrun"),long_call)) write_erase_secure_get_version(void);

#endif /* _WRITE_ERASE_SECURE_H Do not add any thing below this line */